Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Step 2 : Convert ubuntu-9.04-server-amd64 HVM to PV
- ========================================================================
- -> Login to HVM domU
- -> Add apt source list for Debian Lenny. Create a file /etc/apt/sources.list.d/lenny.list with this content
- ########################################################################
- deb http://ftp.debian.org/debian/ lenny main
- deb http://ftp.debian.org/debian/ lenny-proposed-updates main
- ########################################################################
- -> install Lenny's linux-image-xen-amd64
- # for key in A70DAF536070D3A1 4D270D06F42584E6;do sudo gpg --keyserver subkeys.pgp.net --recv-key $key;sudo gpg -a --export $key|sudo apt-key add -;done
- # sudo apt-get update
- # sudo apt-get install linux-image-xen-amd64
- -> edit /boot/grub/menu.lst. Add these lines on the end (adjust UUID with the one on your system and kernel version with the one you just installed)
- ########################################################################
- title Ubuntu 9.04, kernel 2.6.26-2-xen-amd64
- uuid 8da532f7-9314-438b-8cc2-dc1da4ddb683
- kernel /boot/vmlinuz-2.6.26-2-xen-amd64 root=UUID=8da532f7-9314-438b-8cc2-dc1da4ddb683 ro
- initrd /boot/initrd.img-2.6.26-2-xen-amd64
- ########################################################################
- -> also on /boot/grub/menu.lst, change the default entry to the one you just created (on my system, "default 3")
- -> create a suitable upstart entry for hvc0
- # cd /etc/event.d/
- # sudo cp tty1 hvc0
- # sudo sed -i "s/tty1/hvc0/g" hvc0
- -> poweroff domU
- -> Create domU PV config file. Here's mine
- ########################################################################
- memory = "500"
- maxmem = "8000"
- cpus="1-7"
- cpu_cap=100
- cpu_weight=128
- vcpus=8
- vcpu_avail=1
- vif = [ 'mac=00:16:3E:23:2C:52, bridge=br129' ]
- disk = [
- 'phy:/dev/disk/by-path/ip-192.168.129.89:3260-iscsi-iqn.1986-03.com.sun:02:8f570606-7acc-cc9f-cfae-eda9a39a9208-lun-0,hda,w',
- ]
- vfb =['type=vnc,vnclisten=0.0.0.0']
- bootloader="/usr/bin/pygrub"
- ########################################################################
- -> start PV domU with "xm create -c" (don't forget the "-c". It's helpful for debug purposes)
- -> almost done :) Now you should be able to acess PV domU either from xen text console or from VNC. Login to domU.
- -> copy /boot/grub/menu.lst, put it somewhere safe. You might need it later if you decide to turn this domU back to HVM
- -> update domU's grub
- # sudo update-grub
- -> change /boot/grub/menu.lst to have "default 0" again.
- You're done :)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement