vmbuilder strange outcome

Dan Sheffner dsheffner at gmail.com
Fri Jul 30 13:47:56 UTC 2010


So I run this command with vmbuilder without tmpfs since I want this machine
persistent.

vmbuilder kvm ubuntu --suite=lucid --flavour=virtual --arch=amd64 --mirror=
http://192.168.1.4/ubuntu -o --libvirt=qemu:///system --ip=192.168.1.50
--gw=192.168.1.1 --part vmbuilder.partition --user=user --name=user
--pass=pass --addpkg=wget --addpkg=cron --addpkg=vim --addpkg=ntp
--addpkg=ntpdate --addpkg=ssh --addpkg=xvfb --addpkg=build-essential
--addpkg=linux-headers-virtual --addpkg=locate --addpkg=postfix
--addpkg=vpnc --addpkg=acpid --addpkg=clamav --addpkg=chkrootkit
--addpkg=rkhunter --addpkg=apache2 --addpkg=openssl  --mem=512
--hostname=vm00 --bridge=br0

I start the vm and it runs fine:

Then I start another vm that I want to do testing on with tmpfs:

vmbuilder kvm ubuntu --suite=lucid --flavour=virtual --arch=amd64 --mirror=
http://192.168.1.4/ubuntu -o --libvirt=qemu:///system --tmpfs=-
--ip=192.168.1.51 --gw=192.168.1.1 --part vmbuilder.partition --user=user
--name=user --pass=pass --addpkg=wget --addpkg=cron --addpkg=vim
--addpkg=ntp --addpkg=ntpdate --addpkg=ssh --addpkg=xvfb
--addpkg=build-essential --addpkg=linux-headers-virtual --addpkg=locate
--addpkg=postfix --addpkg=vpnc --addpkg=acpid --addpkg=clamav
--addpkg=chkrootkit --addpkg=rkhunter  --mem=512 --hostname=vm01
--bridge=br0

I start the vm and it runs fine as well.

I then do a reboot on the actual server running both virtual machines.  When
the server comes backup vm01 is running and vm00 is not.  Then when I try to
start vm00 I get:

 Id Name                 State
----------------------------------
  1 vm01                 running
  - vm00                 shut off

virsh # start vm00
error: Failed to start domain vm00
error: monitor socket did not show up.: Connection refused

Maybe I'm missing something trivial.  Please let me know.

here is my /etc/libvirt/qemu/vm00.xml
<domain type='kvm'>
  <name>vm00</name>
  <uuid>3b7c0ae2-0e01-f6a7-d25a-f830ebf743ee</uuid>
  <memory>524288</memory>
  <currentMemory>524288</currentMemory>
  <vcpu>1</vcpu>
  <os>
    <type arch='x86_64' machine='pc-0.12'>hvm</type>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
  </features>
  <clock offset='utc'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <devices>
    <emulator>/usr/bin/kvm</emulator>
    <disk type='file' device='disk'>
      <source file='/root/ubuntu-kvm/tmpqDe91O.qcow2'/>
      <target dev='hda' bus='ide'/>
    </disk>
    <disk type='file' device='disk'>
      <source file='/root/ubuntu-kvm/tmpDiQKxk.qcow2'/>
      <target dev='hdb' bus='ide'/>
    </disk>
    <interface type='bridge'>
      <mac address='52:54:00:c0:77:0b'/>
      <source bridge='br0'/>
      <model type='virtio'/>
    </interface>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1'/>
    <video>
      <model type='cirrus' vram='9216' heads='1'/>
    </video>
  </devices>
</domain>


and my vm01.xml

<domain type='kvm'>
  <name>vm01</name>
  <uuid>8787828a-5312-b16a-b418-ff4aeb899cbd</uuid>
  <memory>524288</memory>
  <currentMemory>524288</currentMemory>
  <vcpu>1</vcpu>
  <os>
    <type arch='x86_64' machine='pc-0.12'>hvm</type>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
  </features>
  <clock offset='utc'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <devices>
    <emulator>/usr/bin/kvm</emulator>
    <disk type='file' device='disk'>
      <source file='/root/ubuntu-kvm/tmppPDWFz.qcow2'/>
      <target dev='hda' bus='ide'/>
    </disk>
    <disk type='file' device='disk'>
      <source file='/root/ubuntu-kvm/tmp3pp8px.qcow2'/>
      <target dev='hdb' bus='ide'/>
    </disk>
    <interface type='bridge'>
      <mac address='52:54:00:37:07:d1'/>
      <source bridge='br0'/>
      <model type='virtio'/>
    </interface>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1'/>
    <video>
      <model type='cirrus' vram='9216' heads='1'/>
    </video>
  </devices>
</domain>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-server/attachments/20100730/17df9582/attachment.html>


More information about the ubuntu-server mailing list