[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
howtos:emulators:vms [2018/08/29 17:42 (UTC)] – created nikoshowtos:emulators:vms [2023/12/12 09:40 (UTC)] (current) zeebra
Line 1: Line 1:
-====== vms ======+====== Using vms command line tool to create and manage a qemu virtual machine ====== 
 + 
 +===== vms =====
  
 An example using vms for creating and managing a qemu virtual machine An example using vms for creating and managing a qemu virtual machine
Line 7: Line 9:
 You need to install vde2, tigervnc and qemu first You need to install vde2, tigervnc and qemu first
  
-Get the ready made package, you should use the latest release+Get the ready made package and install it, you should use the latest release
  
 <code bash> <code bash>
-wget https://bitbucket.org/yotis/vms/vms-0.2.0-noarch-1did.tgz+wget https://bitbucket.org/yotis/vms/vms-0.2.1-noarch-1did.tgz 
 +upgradepkg --install-new vms-0.2.1-noarch-1did.tgz
 </code> </code>
  
-Install or upgrade vms with +Or use slackbuilds.org, eg via sbopkg
 <code> <code>
-upgradepkg --install-new vms-0.2.0-noarch-1did.tgz+sbopkg -vms
 </code> </code>
  
Line 27: Line 29:
 vms create vm1 vms create vm1
 vms list vms list
-grep ~/.vms/vms.conf vm1+grep vm1 ~/.vms/vms.conf
 ls ~/.vms/vm1 ls ~/.vms/vm1
 </code> </code>
Line 33: Line 35:
 You can use the ~/.vms/vm1 directory to store anything you want, but You can use the ~/.vms/vm1 directory to store anything you want, but
 this is not mandatory. The only thing that is needed is the  this is not mandatory. The only thing that is needed is the 
-~/.vms/vm1.sh script.+~/.vms/vm1/vm1.sh script.
  
-To show the configuration for the vm1 virtual machine, use this+To show the configuration of the vm1 virtual machine, use this
  
 <code bash> <code bash>
Line 68: Line 70:
 <code bash> <code bash>
 cd ~/.vms/vm1 cd ~/.vms/vm1
-qemu-img crete -f qcow2 disk0.img 20G+qemu-img create -f qcow2 disk0.img 20G
 vms conf vm1 disk0 '~/.vms/vm1/disk0.img' vms conf vm1 disk0 '~/.vms/vm1/disk0.img'
 </code> </code>
Line 76: Line 78:
  
 <code bash> <code bash>
-vms conf vm1 cdrom ~/os/slackware64-14.2-install-dvd.iso+vms conf vm1 bootcd ~/os/slackware64-14.2-install-dvd.iso
 vms info vm1 vms info vm1
 </code> </code>
Line 94: Line 96:
  
 <code bash> <code bash>
-vms conf vm1 disk0 '"$ISOS/slackware64-14.2-install-dvd.iso"'+vms conf vm1 bootcd '"$ISOS/slackware64-14.2-install-dvd.iso"'
 </code> </code>
  
Line 103: Line 105:
   * Nikos Giotis   * Nikos Giotis
  
-{{tag>vms qemu}} +<!-- Please do not modify anything below, except adding new tags.--> 
- +<!-- This page needs a better name, maybe something like "Vms for creating and managing a qemu VM" --> 
-https://docs.slackware.com/howtos:emulators:vms-HOW-TO+{{tag>howtos software emulator vms qemu needs_attention}}
 howtos:emulators:vms ()