On Wed, 20 Jan 2021 22:34:14 +0000
"'awokd' via qubes-users" <qubes-users@googlegroups.com> wrote:

>mgla...@gmail.com:
>> Hi,
>> 
>> Hopefully I'm doing something silly here.
>> 
>> I want to add a couple of entries into my /etc/hosts file in a specific VM.
>> The instructions here are nice and
>> clear: https://www.qubes-os.org/doc/config-files/ except... that doesn't
>> work.
>> 
>> I've added the following to my /rw/config/rc.local :
>> echo '127.0.0.1 example.com' >> /etc/hosts
>> And after a VM restart my /etc/hosts is unchanged.  
>
>Might have to add "sudo" in front of that echo. Also, double-check that 
>rc.local is set as executable and in proper script format. Does it work 
>if you run it yourself from the command line?
>
>> Also, as an aside, is it odd that rc.local is owned by root, if it's
>> something that's expected to be changed per-VM?  
>
>No, because it's only the root account that belongs to the VM.
>
I setup a "hosts.ext" file in the home directory of the user on the VM and an 
/rw/config/rc.local script which cat's it to the end of /etc/hosts on boot.  
That makes entries for other machines on my home network (not Qubes) for my 
convenience (rdp/vinagre, ssh etc...)  

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/20210121155525.5860987c%40usa.net.

Reply via email to