User Tools

Site Tools


user:afassett:portfolio:creating_virtual_machines

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

user:afassett:portfolio:creating_virtual_machines [2011/05/12 02:48] – created afassettuser:afassett:portfolio:creating_virtual_machines [2011/05/12 02:49] (current) afassett
Line 1: Line 1:
 +=====Virtual machine==== 
 +[[http://lab46.corning-cc.edu/haas/spring2011/hpc0/projects/creating_virtual_machines|project is virtual]]\\ 
 +1. Find a vm number that hasn't been used and place it in the [[http://lab46.corning-cc.edu/notes/hpc0#vm_server_user_lists|hpc notes]]\\ 
 +2. Log into ssh vmserver##\\ 
 +<cli>vmserverXX:# xen-create-image --hostname=vm## --mac=00:16:3e:2e:c0:## --role=udev </cli> If no errors or warnings next step.\\ 
 +<cli> :~# cd /xen </cli> 
 +<cli>root@vmserver04:/xen# ls 
 +conf  domains 
 +root@vmserver04:/xen# cd domains 
 +root@vmserver04:/xen/domains# ls 
 +vm03 
 +root@vmserver04:/xen/domains# cd vm03 
 +root@vmserver04:/xen/domains/vm03# ls 
 +disk.img  swap.img 
 +root@vmserver04:/xen/domains/vm03# mount disk.img 
 +mount: can't find disk.img in /etc/fstab or /etc/mtab 
 +root@vmserver04:/xen/domains/vm03# mount -o loop disk.img /mnt 
 +root@vmserver04:/xen/domains/vm03# cd /mnt 
 +root@vmserver04:/mnt# chroot /mnt 
 +root@vmserver04:/# passwd 
 +Enter new UNIX password:  
 +Retype new UNIX password:  
 +passwd: password updated successfully 
 +root@vmserverxx:/mnt# cd  
 +root@vmserverxx:~# umount /mnt 
 +</cli> 
 +4. <cli> xm create -c /xen/conf/vmXX.cfg </cli>