Score:0

How can you simulate a temporary network outage of a VM lasting a few minutes without systematically losing it?

wf flag

How can you simulate a temporary network outage of a VM lasting a few minutes without systematically losing it?

I've tried this command on my VM for testing purposes, but each time it's run, my VM can't be reached and needs to be rebooted.

sudo ip link set eth0 down && sleep 600 && sudo ip link set eth0 up

If anyone has any ideas, thank you in advance.

Esther avatar
es flag
you checked after 10+ minutes, and the VM still couldn't be reached?
Esther avatar
es flag
did you change your sudo timeout? you might need a new sudo password by the time 10 minutes are up. Try this by sleeping for 5 seconds, see if that works.
Dyn amo avatar
wf flag
I tried with 5 seconds the VM becomes unreachable. I had to restart it.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.