test: forgejo microVM

This commit is contained in:
Nick 2025-11-09 04:24:22 -06:00
parent bb9a102fd9
commit cb01cdf219
3 changed files with 6 additions and 6 deletions

View file

@ -37,9 +37,9 @@ in
};
interface = {
id = "vm-${name}";
mac = "03:00:00:00:00:53";
mac = "02:00:00:00:00:53";
idUser = "vmuser-${name}";
macUser = "04:00:00:00:00:05";
macUser = "02:00:00:00:00:05";
ip = "192.168.50.153";
gate = "192.168.50.1";
ssh = 2205;

View file

@ -49,7 +49,7 @@ in
HTTP_PORT = serviceCfg.ports.port0;
};
# If you need to start from scratch, don't forget to turn this off again
service.DISABLE_REGISTRATION = false;
service.DISABLE_REGISTRATION = true;
actions = {
ENABLED = true;
DEFAULT_ACTIONS_URL = "github";
@ -105,7 +105,7 @@ in
addresses = [ { Address = "${serviceCfg.interface.ip}/24"; } ];
routes = [
{
Destination = "${hostCfg.localhost.address1}/0";
Destination = "0.0.0.0/0";
Gateway = serviceCfg.interface.gate;
}
];

View file

@ -68,8 +68,8 @@ in
};
microvm = {
vcpu = 4;
mem = 4096;
vcpu = 6;
mem = 8192;
hypervisor = "qemu";
interfaces = [
{