Send Wake on LAN magic packet from INSIDE openVZ container?

jonathanku

Renowned Member
Feb 16, 2012
14
0
66
Hi, I've got Wake-on-lan configured on my desktop machine (running Kubuntu), and I'd like to wake it up from a Centos OpenVZ host in Proxmox.

I've tested sending the magic packet from my physical windows laptop (using the Nirsoft tool), and Kubuntu wakes up fine. From the Centos virtual host I used ether-wake (after installing net-tools). It asks me to specify interface - ifconfig shows "lo", "venet0" and "venet0:0". Both venet interfaces show a 00-00-00-00-etc.... for a hardware address.

Is it possible to send the magic packet from inside an openVZ host?
 
The venet0 and venet0:0 are virtual interfaces, under normal circumstances they don't need a HWaddr other than 00-00-00-00-etc.
Venet0:0 should be the correct interface, not sure what ether-wake needs.
 
Thanks reflex. So assuming I get the interface right, is there any technical reason I can't send the "magic packet" from a CT host?
 
I really don't know. But logic would say you should be able to send any packet. In the worst case you just need to permit that on the host.