jeste dilek do skladacky ze strany VM / qemu agenta to zjistis takhle
qm guest cmd 102 network-get-interfaces
a dostanes tohle pokud zapojeny virtio mas
[
{
"hardware-address" : "00:00:00:00:00:00",
"ip-addresses" : [
{
"ip-address" : "127.0.0.1",
"ip-address-type" : "ipv4",
"prefix" : 8
},
{
"ip-address" : "::1",
"ip-address-type" : "ipv6",
"prefix" : 128
}
],
"name" : "lo",
"statistics" : {
"rx-bytes" : 182520,
"rx-dropped" : 0,
"rx-errs" : 0,
"rx-packets" : 2005,
"tx-bytes" : 182520,
"tx-dropped" : 0,
"tx-errs" : 0,
"tx-packets" : 2005
}
},
{
"hardware-address" : "bc:24:11:e7:20:a7",
"ip-addresses" : [
{
"ip-address" : "10.1.3.103",
"ip-address-type" : "ipv4",
"prefix" : 24
},
{
"ip-address" : "fe80::be24:11ff:fee7:20a7",
"ip-address-type" : "ipv6",
"prefix" : 64
}
],
"name" : "ens18",
"statistics" : {
"rx-bytes" : 12986709,
"rx-dropped" : 2,
"rx-errs" : 0,
"rx-packets" : 162564,
"tx-bytes" : 66463,
"tx-dropped" : 26,
"tx-errs" : 0,
"tx-packets" : 763
}
}
]
a tohle pokud nemas
[
{
"hardware-address" : "00:00:00:00:00:00",
"ip-addresses" : [
{
"ip-address" : "127.0.0.1",
"ip-address-type" : "ipv4",
"prefix" : 8
},
{
"ip-address" : "::1",
"ip-address-type" : "ipv6",
"prefix" : 128
}
],
"name" : "lo",
"statistics" : {
"rx-bytes" : 182520,
"rx-dropped" : 0,
"rx-errs" : 0,
"rx-packets" : 2005,
"tx-bytes" : 182520,
"tx-dropped" : 0,
"tx-errs" : 0,
"tx-packets" : 2005
}
},
{
"hardware-address" : "bc:24:11:e7:20:a7",
"name" : "ens18"
}
]