Launching Virtual Machine from multiple disks?

asked 2015-04-12 05:08:19 -0600

anonymous user



I' want to launch particullar VM using Openstack(NOVA), which made me trouble because it seems that NOVA has limmited functionallity relative to qemu. (I mean, that not everything what can be done directly using qemu, can be done using nova)

I'm starting VM using following bash script:

$qemu -enable-kvm \
      -m 64 \
      -nographic \
      -pidfile \
      -virtfs local,id=cs.0,path=cs.0,security_model=none,mount_tag=cs.0 \
      -drive if=virtio,media=disk,format=raw,file=main.0.img \
      -drive if=virtio,media=disk,format=raw,file=modules.0.img \
      -drive if=virtio,media=disk,format=raw,file=files.0.img \
      -virtfs local,id=rwd.0,path=rwd.0,security_model=none,mount_tag=rwd.0 \
      -virtfs local,id=rwda.0,path=rwda.0,security_model=none,mount_tag=rwda.0 \
      -net nic,model=virtio,macaddr=02:69:5a:2d:cd:00 \
      -kernel kernel.img \
      -append "console=ttyS0 cs=cs.0 csfs=9p csmo=trans=virtio,version=9p2000.L,rw"


  • main.0., modules.0., files.0 are raw disc images ,
  • kernel.img is raw image of kernel,
  • rwd.0, rwda.0, cs.0 are directiories to be shared with host OS through shared file system 9p (?)

And i want to launch similar VM using NOVA, and it's important that i dont want to change existing bare code of this project.

If it's not possible, than maybe You've any ideas how to merge those up? This shared filesystem is not necessary, it can be replaced with static directories.

edit retag flag offensive close merge delete