05.08.2013 Views

[PDF] Parallels Server 5 Bare Metal

[PDF] Parallels Server 5 Bare Metal

[PDF] Parallels Server 5 Bare Metal

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Managing Virtual Machines and Containers<br />

Running Commands in a Virtual Machine and<br />

Container<br />

<strong>Parallels</strong> <strong>Server</strong> <strong>Bare</strong> <strong>Metal</strong> allows you to execute arbitrary commands inside virtual machines and<br />

Containers by running them on the physical server, i.e. without the need to log in to the respective<br />

virtual machine and Container. For example, this can be useful in these cases:<br />

• If you do not know the virtual machine and Container login information, but need to run some<br />

diagnosis commands to verify that it is operational.<br />

• If network access is absent for a virtual machine and Container.<br />

In both these cases, you can use the pctl exec command to run a command inside the<br />

respective virtual machine and Container. The session below illustrates the situation when you run<br />

the stopped SSH daemon inside a Linux virtual machine with the name of My_Linux:<br />

# pctl exec My_Linux /etc/init.d/sshd status<br />

sshd is stopped<br />

# pctl exec My_Linux /etc/init.d/sshd start<br />

Starting sshd:[OK]<br />

# pctl exec My_Linux /etc/init.d/sshd status<br />

sshd (pid 26187) is running...<br />

Notes:<br />

1. You can use the pctl exec command only inside virtual machines that have <strong>Parallels</strong> Tools installed.<br />

2. The pctl exec command is executed inside a virtual machine and Container from the / directory<br />

rather than from the /root one.<br />

43

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!