[ANN] Introducing vms - more qemu virtual machines !
Hallo,
I am introducing vms. vms is a little system for managing qemu virtual machines. It is written in bash. Two main utilities are provided; vms and rc.vms. vms is for running as a normal user eg. joe. It is used to create and manage virtual machines using simple commands like this Code:
vms create vm1 Code:
echo 'joe vm1' >> /etc/rc.d/rc.vms.conf See README.md and the man pages vms(1), vms.conf(5), rc.vms.conf(8), rc.vms.conf(5), vms-tutorial for more information. A ready to install slackware package is here vms-0.2.1-noarch-1did.tgz (!!updated!!!) vms HOW TO: https://docs.slackware.com/howtos:emulators:vms I am using this for quite some time now. It has grown from using custom scripts inspired by Alien Bob's qemu posts and scripts. I have been running with this various linux distros, BSD's, minix, MacOS, windows etc. It has also been used with pci-stub and vfio-pci passthrough for having available hardware in the vm, such as pci graphics and audio cards or the whole usb bridge. See https://bitbucket.org/yotis/vms/src/...sbin/vfio-bind I find it useful, maybe it will be for others useful too. Any feedback and contribution is more than welcome :) I will also submit a SlackBuild to slackbuilds.org. |
What differentiates vms from virsh/libvirt?
|
Quote:
The main utility vms supports a very simple interface. Code:
$ vms Code:
#!/bin/bash I will upload soon a 0.1.2 version that has some manpages, with some more examples and documentation how to use it. |
I just uploaded another package, vms-0.1.2, it has man pages for vms and vms.conf. In there there are some more examples. See the first post for download link.
|
1 Attachment(s)
Thanks for sharing your scripts.
I installed vms-0.1.2-noarch-1did.tgz and read the man pages first. Then I created $HOME/.vms/vms.conf (file is attached) and ran "vms create vslack01" and got an error message that it can't find '/var/lib/vms/vm.sh'. I found '/var/lib/vms/vm.sh.new' instead, so I renamed it. When I started that command again, it complained that Quote:
Code:
cp /var/lib/vms/vm.sh $HOME/.vms/vslack01/vslack01.sh Now when I do Code:
vms start vslack01 Code:
starting vslack01 ...qemu-system-x86_64: -device virtio-net-pci,netdev=nd1,mac=52:54:00:12:34:65: drive with bus=0, unit=0 (index=0) exists Code:
starting vslack01 ...qemu-system-x86_64: -boot once=d: drive with bus=0, unit=0 (index=0) exists Any idea what else it could be? |
Thank you for testing :)
About /var/lib/vms/vm.sh.new, it is indeed a packaging issue, I forgot to add a line to doinst.sh, it will be ok with the next package. The easiest way to start is by Code:
$ vms create vmslack01 Code:
mkdir ~/.vms/vmslack01/ What qemu version are you using? I am using here 2.9.0. From the error message you get I think it tries to attach a disk device where another one is already attached. Can you try modifing the disk like this? Code:
vslack01[disk0]="$VMSTORE/Slackware_14.2_avahi.qcow2,index=1" Code:
vslack01[disk0]="$VMSTORE/Slackware_14.2_avahi,if=virtio" |
Also qemu monitor console is to be used like this
Code:
vslack01[monitor]=yes Code:
vms monitor vslack01 |
Thanks for the quick reply.
Quote:
Adding Code:
,index=1 Code:
,if=virtio Quote:
Thanks! :) |
I have uploaded vms-0.1.2-noarch-2did.tgz package that fixes the /var/lib/vms/vm.sh related errors when using 'vms create vslack01'.
|
I have uploaded vms-0.1.3-noarch-1did.tgz package.
It has better documentation. See the first post for links to the man pages. Install it like this Code:
upgradepkg --install-new vms-0.1.3-noarch-1did.tgz |
And here is another package for vms 0.2.0, get it there
vms-0.2.0-noarch-1did.tgz There is a tutorial `man vms-tutorial` and updated man pages. A new option is introduced 'vms conf' for editing ~/.vms/vms.conf. Code:
vms create vm1 |
I think this would be better posted in the generic Linux forum. Granted it comes with Slackware packages but it won't be rocket science to get it working with other distros.
It reminds me of something I put together a while back: http://www.biffer.talktalk.net/PyQemu/?showpage=true. I can't believe that was 12 years ago... :-( |
Quote:
Quote:
|
vms 0.2.1
I have uploaded vms-0.2.1-noarch-1did.tgz
It has many little fixes, some performance improvements, much more polished and tested examples and man pages and saner output to the user. I think this is the most polished version so far. If you tried any of the previous ones, please try again. There is also a how to at https://docs.slackware.com/howtos:emulators:vms Have fun |
Maybe you shouldn't have called it vms. There's an operating system called that (used to be used on DEC Vaxes).
|
All times are GMT -5. The time now is 05:36 AM. |