KVM Management : Public Bridge setup
Hi
The /etc/qemu-if script seems to be taking the interface as a parameter, is there a way to pass the bridge name to the script as well. Thus from the command line one can pass the bridge that one whats to attach to. (One can potentially one script for each bridge and pass the script name to qemu... but it seems bit unnecessary.)
Thanks
/Jd
Quoted 4 lines · jd
Hi
The/etc/qemu-ifscript seems to be taking the interface as a parameter, is there a way to pass the bridge name to the script as well. Thus from the command line one can pass the bridge that one whats to attach to. (One can potentially one script for each bridge and pass the script name to qemu... but it seems bit unnecessary.)
Environmental variables passed to the QEMU process can be used by the scripts. For instance, if you use $BRIDGE_NAME in the script, then you would start QEMU with:
BRIDGE_NAME=br1 qemu-system-x86_64 ....
Regards,
Anthony Liguori
Quoted 10 lines
Thanks
/Jd--
To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
cool..... why didnt I think of that.
Will try that out. Thanks.
/Jd
Quoted 40 lines · Anthony Liguori
From: Anthony Liguori <[email protected]>
Subject: Re: KVM Management : Public Bridge setup
To: [email protected]
Cc: "KVM List" <[email protected]>
Date: Saturday, August 9, 2008, 8:43 AMQuoted 2 lines · jd
Hi
The/etc/qemu-ifscript seems to be taking theinterface as a parameter, is there a way to pass the bridge name to the script as well. Thus from the command line one can pass the bridge that one whats to attach to.
Quoted 1 line
(One can potentially one script for each bridge and
pass the script name to qemu... but it seems bit
unnecessary.)Quoted 1 line
Environmental variables passed to the QEMU process can be used by the
scripts. For instance, if you use $BRIDGE_NAME in the script, then you
would start QEMU with:BRIDGE_NAME=br1 qemu-system-x86_64 ....
Regards,
Anthony Liguori
Quoted 7 lines
Thanks
/Jd--
To unsubscribe from this list: send the line"unsubscribe kvm" in
Quoted 2 lines
the body of a message to [email protected] More majordomo info at
http://vger.kernel.org/majordomo-info.html
Quoted 1 line
Quoted 5 lines · jd
The
/etc/qemu-ifscript seems to be taking the interface as a
parameter, is there a way to pass the bridge name to the script as well. Thus from the command line one can pass the bridge that one whats to attach to. (One can potentially one script for each bridge and pass the script name to qemu... but it seems bit unnecessary.)
I name my tap devices (using ifname=...) as follows:
tap.br0.05.1
where
tap -- this is a tap device br0 -- the name of the bridge 05 -- the ID of the VM (each of my VM's has a unique numeric ID) 1 -- The NIC # on the VM (1, 2, 3, or 4 depending on # of NIC's)
Then on my scripts I can extract the bridge name and use it. This also has the advantage of helping me know just by the name what bridge this devices is hooked up to, what VM it belongs to, and which NIC it is inside the VM.
Neat.
Thanks
/Jd
Quoted 40 lines · Alberto Treviño
From: Alberto Treviño <[email protected]>
Subject: Re: KVM Management : Public Bridge setup
To: "[email protected]" <[email protected]>
Cc: "KVM List" <[email protected]>
Date: Monday, August 11, 2008, 8:12 PMQuoted 1 line · jd
The
/etc/qemu-ifscript seems to be taking theinterface as a
Quoted 1 line
parameter, is there a way to pass the bridge name to
the script as well.
Quoted 1 line
Thus from the command line one can pass the bridge
that one whats to
Quoted 1 line
attach to. (One can potentially one script for each
bridge and pass the
Quoted 1 line
script name to qemu... but it seems bit unnecessary.)
I name my tap devices (using ifname=...) as follows:
tap.br0.05.1
where
tap -- this is a tap device br0 -- the name of the bridge 05 -- the ID of the VM (each of my VM's has aunique numeric ID)
1 -- The NIC # on the VM (1, 2, 3, or 4 depending on #
of NIC's)Then on my scripts I can extract the bridge name and use it. This also has
the advantage of helping me know just by the name what bridge this devices
is hooked up to, what VM it belongs to, and which NIC it is inside the VM.
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected] More majordomo info at
http://vger.kernel.org/majordomo-info.html