[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Can I control Xen VM via virsh command?


  • To: Jason Long <hack3rcon@xxxxxxxxx>, Xen-users <xen-users@xxxxxxxxxxxxx>
  • From: Abdallah Jabbour <it-j@xxxxxxxxx>
  • Date: Mon, 13 Jun 2016 07:42:45 +0000
  • Accept-language: en-US
  • Delivery-date: Mon, 13 Jun 2016 07:59:08 +0000
  • List-id: Xen user discussion <xen-users.lists.xen.org>
  • Thread-index: AQHRw6ZHA2yPaD+WXUatYIYfpkwjK5/j5fLwgAAFGoCAADTLYP//7jCAgAH+KQOAAMCxAIAAMFBw///XUQCAAC+EEA==
  • Thread-topic: [Xen-users] Can I control Xen VM via virsh command?

You need to convert The configuration file for a xl’s managed VM to libvirt xml file , you can use domxml-from-native and domxml-to-native to convert to libvirt xml configuration :

 

Virsh domxml-from-native  xen-xm /etc/xen/guest.cfg

 

The output xml file will be placed in /etc/libvirt/qemu/

 

This is what you need to convert your xl config file to xml and manage your vm via virsh or virt-manager GUI .

 

Abdallah Jabbour

IT Manager

MSC -MEDITERRANEAN SHIPPING AGENCY ( SYRIA )

for the real world

Sheikhdaher, Flaifel Brothers Avenue,Bldge No.602 P.O. Box 1133

T:+963 41 466 122/Ext 225  W: www.msc.com

As agent for MSC Mediterranean Shipping Company S.A., Geneva

 

 

From: Jason Long [mailto:hack3rcon@xxxxxxxxx]
Sent: 13
حزيران, 2016 10:42 ص
To: Abdallah Jabbour <it-j@xxxxxxxxx>; Xen-users <xen-users@xxxxxxxxxxxxx>
Subject: Re: [Xen-users] Can I control Xen VM via virsh command?

 

I use "xl" command.

 

On Monday, June 13, 2016 11:56 AM, Abdallah Jabbour <it-j@xxxxxxxxx> wrote:

 

How did you start it ? “ xl create configfile” ? or created a VM using virt-manager GUI or virsh-install ?

 

Abdallah Jabbour

IT Manager

MSC -MEDITERRANEAN SHIPPING AGENCY ( SYRIA )

for the real world

Sheikhdaher, Flaifel Brothers Avenue,Bldge No.602 P.O. Box 1133

T:+963 41 466 122/Ext 225  W: www.msc.com

As agent for MSC Mediterranean Shipping Company S.A., Geneva

 

 

From: Jason Long [mailto:hack3rcon@xxxxxxxxx]
Sent: 13 حزيران, 2016 10:15 ص
To: Abdallah Jabbour <it-j@xxxxxxxxx>; Xen-users <xen-users@xxxxxxxxxxxxx>
Subject: Re: [Xen-users] Can I control Xen VM via virsh command?

 

I started my Xen VM and how can I work with it via "libvirsh" ?

 

On Sunday, June 12, 2016 9:40 PM, Abdallah Jabbour <it-j@xxxxxxxxx> wrote:

 

virsh is the shell for managing Guest VM , once you install libvirt , you can start , shutdown  , destroy , edit , to create VM another command is virt-install , you can man both , while there is buitin help for virsh .

example :
virsh edit domain-name ( edit the VM config file )
virsh start domain-name
virsh shutdown domain-name
virsh destroy domain-name ( un-plug power cord from the Vm )
virsh autstart domain-name ( mark the domain for auto start with the host ) .

you can do a lot of stuff from virsh you can migrate to another hypervisor
....

enjoy

 

Abdallah Jabbour

IT Manager

MSC -MEDITERRANEAN SHIPPING AGENCY ( SYRIA )

for the real world

Sheikhdaher, Flaifel Brothers Avenue,Bldge No.602 P.O. Box 1133

T:+963 41 466 122/Ext 222  W: www.msc.com


From: Jason Long [hack3rcon@xxxxxxxxx]
Sent: Saturday, June 11, 2016 3:18 PM
To: Abdallah Jabbour; Xen-users
Subject: Re: [Xen-users] Can I control Xen VM via virsh command?

Installed but how to use it?

 

On Saturday, June 11, 2016 4:11 PM, Abdallah Jabbour <it-j@xxxxxxxxx> wrote:

 

Install libvirt

 

Abdallah Jabbour

IT Manager

MSC -MEDITERRANEAN SHIPPING AGENCY ( SYRIA )

for the real world

Sheikhdaher, Flaifel Brothers Avenue,Bldge No.602 P.O. Box 1133

T:+963 41 466 122/Ext 225  W: www.msc.com

As agent for MSC Mediterranean Shipping Company S.A., Geneva

 

 

From: Jason Long [mailto:hack3rcon@xxxxxxxxx]
Sent: 11 حزيران, 2016 02:14 م
To: Abdallah Jabbour <it-j@xxxxxxxxx>; Xen-users <xen-users@xxxxxxxxxxxxx>
Subject: Re: [Xen-users] Can I control Xen VM via virsh command?

 

How?

 

On Saturday, June 11, 2016 12:27 PM, Abdallah Jabbour <it-j@xxxxxxxxx> wrote:

 

Yes you can , it will support only full virtualization ( no PV will be supported ) . and if you previously manage HVM guest via xl , you will need to convert your xl configuration files for the Guest VM to xml libvirt format .

 

Abdallah Jabbour

IT Manager

MSC -MEDITERRANEAN SHIPPING AGENCY ( SYRIA )

for the real world

Sheikhdaher, Flaifel Brothers Avenue,Bldge No.602 P.O. Box 1133

T:+963 41 466 122/Ext 225  W: www.msc.com

As agent for MSC Mediterranean Shipping Company S.A., Geneva

 

 

From: Xen-users [mailto:xen-users-bounces@xxxxxxxxxxxxx] On Behalf Of Jason Long
Sent: 11 حزيران, 2016 09:08 ص
To: Xen-users <xen-users@xxxxxxxxxxxxx>
Subject: [Xen-users] Can I control Xen VM via virsh command?

 

Hello.

Can I start and stop Xen VM via "virsh" command?

 

Tnx.

This message and any associated files (together the “Contents”) are intended solely for the addressee(s). The Contents are confidential and may contain private information or information that is subject to copyright or is a trade secret or which is privileged. Views or opinions expressed herein do not necessarily represent views or opinions of MSC Mediterranean Shipping Company, its agents or their affiliated companies and may only be the view or opinion of the author. If you are not the intended recipient of this email, you must not use, print, copy, store, forward, or disclose it or act in reliance of the Contents. Please destroy all copies of the message and any associated files and notify the sender immediately that you have received it in error. Thank you for your cooperation.

 

This message and any associated files (together the “Contents”) are intended solely for the addressee(s). The Contents are confidential and may contain private information or information that is subject to copyright or is a trade secret or which is privileged. Views or opinions expressed herein do not necessarily represent views or opinions of MSC Mediterranean Shipping Company, its agents or their affiliated companies and may only be the view or opinion of the author. If you are not the intended recipient of this email, you must not use, print, copy, store, forward, or disclose it or act in reliance of the Contents. Please destroy all copies of the message and any associated files and notify the sender immediately that you have received it in error. Thank you for your cooperation.

 

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users

 

This message and any associated files (together the “Contents”) are intended solely for the addressee(s). The Contents are confidential and may contain private information or information that is subject to copyright or is a trade secret or which is privileged. Views or opinions expressed herein do not necessarily represent views or opinions of MSC Mediterranean Shipping Company, its agents or their affiliated companies and may only be the view or opinion of the author. If you are not the intended recipient of this email, you must not use, print, copy, store, forward, or disclose it or act in reliance of the Contents. Please destroy all copies of the message and any associated files and notify the sender immediately that you have received it in error. Thank you for your cooperation.

 

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users

 

This message and any associated files (together the “Contents”) are intended solely for the addressee(s). The Contents are confidential and may contain private information or information that is subject to copyright or is a trade secret or which is privileged. Views or opinions expressed herein do not necessarily represent views or opinions of MSC Mediterranean Shipping Company, its agents or their affiliated companies and may only be the view or opinion of the author. If you are not the intended recipient of this email, you must not use, print, copy, store, forward, or disclose it or act in reliance of the Contents. Please destroy all copies of the message and any associated files and notify the sender immediately that you have received it in error. Thank you for your cooperation.

 

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users

 

This message and any associated files (together the “Contents”) are intended solely for the addressee(s). The Contents are confidential and may contain private information or information that is subject to copyright or is a trade secret or which is privileged. Views or opinions expressed herein do not necessarily represent views or opinions of MSC Mediterranean Shipping Company, its agents or their affiliated companies and may only be the view or opinion of the author. If you are not the intended recipient of this email, you must not use, print, copy, store, forward, or disclose it or act in reliance of the Contents. Please destroy all copies of the message and any associated files and notify the sender immediately that you have received it in error. Thank you for your cooperation.
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.