1823011 Members
3815 Online
109645 Solutions
New Discussion юеВ

Re: Virtual Switch

 
SOLVED
Go to solution
haimi
Frequent Advisor

Virtual Switch

Hi,

What is the command to automatically start a virtual switch of a guest when the host boot up?

Thanks!
3 REPLIES 3
Torsten.
Acclaimed Contributor
Solution

Re: Virtual Switch

From the hpvmnet man page:

"-b
Starts an existing vswitch. Vswitches must be started before
they will accept guest traffic.
Note that Integrity VM
attempts to automatically start all existing vswitches when
Integrity VM itself is started."

From hpvmmodify man page:

"-B
start-attr Specifies the startup behavior of the virtual machine. The
start_attr argument can have the following
(case-insensitive) values:
├в ┬в auto: Automatically start the virtual machine when
Integrity VM is initialized on the host.
├в ┬в manual: Manually start the virtual machine.
If the start_attr attribute is set to auto, the virtual machine
is started when Integrity VM is initialized. This is the
default. This occurs when the VM Host system is booted,
and when the Integrity VM software is stopped and
restarted on a running VM Host. For example, when you
upgrade Integrity VM to a new version on a running
system, the software is started automatically. The VM Host
attempts to start all virtual machines for which the attribute
is set to auto. If insufficient resources exist, some virtual
machines may fail to start.
If the attribute is set to manual, the virtual machine will
not be started automatically when Integrity VM is
initialized on the VM Host. The virtual machine can then
be started manually with the hpvmstart command or
through its virtual console.
This option does not set the virtual machine's console to
enable booting when the virtual machine is started. This
function must be set with the virtual machine's console."


So if your HPVMs are starting in auto mode, your switches will do the same.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
haimi
Frequent Advisor

Re: Virtual Switch

Hi Torsten,

Wonderful! I configured such that the VM boots automatically with

hpvmmodify -B auto -P servername.

After rebooting, the VM and the Virtual Switch starts automatically.

That does the trick.

Thanks for you help.
Torsten.
Acclaimed Contributor

Re: Virtual Switch

You are welcome.
Good luck and have fun!

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!