Hi guys:
I am trying to start a kvm guest ‘lvm-kvm3’ on machine 1 while the vm’s disk is on another machine 2 and exported using ATA over Ethernet. Both physical machines are ubuntu 9.04, kernel version 2.6.28-11-server. Here is what I do:
- On machine 2, use vmbuilder to create a vm. I do this simply because I want to create the disk for the vm. I use the command:
vmbuilder kvm ubuntu --suite=jaunty --flavour=virtual --arch=amd64 -o --libvirt=qemu:///system --tmpfs=- --ip=10.12.255.110 --gw=10.12.0.11 --mask=255.255.0.0 --part=vmbuilder.partition --templates=mytemplates --user=seelab --name=seelab --pass=seelab --addpkg=vim-nox --addpkg=unattended-upgrades --addpkg=acpid --firstboot=boot.sh --mem=512 --hostname=lvm-kvm3 --bridge=br0 --domain=example.com
-
After this, I create a lvm on machine 2, and use ‘qemu-img convert disk0.qcow2 -O raw /dev/vg/lv’.
-
Then I change the lvm-kvm3.xml file to notify the guest to use the lvm. I start the vm on machine 2, and everything is perfect up till now.
-
I set up vblade on machine 2, export the lvm for the virtual machine. On machine 1 I install aoetools and use aoe-discover and aoe-stat. I could find the device under /dev/etherd/e0.0 and its status is OK.
-
I copy the lvm-kvm3.xml file from machine 2 to machine1, modify the xml file so that it will use the network device. When I start the vm, it freezes. I switch to guest’s console, nothing is there. Just freezing.
Below is my lvm-kvm3.xml file:
lvm-kvm3 e7f0355c-3140-e462-f521-4e965e502d62 524288 524288 1 hvm destroy restart destroy /usr/bin/kvmHas anybody run into such problems before? Any help will be appreciated. Thanks a lot!